<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('Power Brand Web Index |'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->css('960_16_col');
        echo $this->Html->css('reset');  
        echo $this->Html->css('text'); 
        echo $this->Html->css('common');
	?>
    <?php echo $this->Html->script('jquery/libs/jquery_1_6_2'); ?>

</head>
<body>
	<div id="container" class="container_16">
		<div id="header" class="grid_16" >        
			<h1><?php echo $this->Html->link(__('Power Brand', true), '#');  ?></h1>
			<ul class="topLinks">
					<li><?php echo $this->Html->link(__('Add a Brand', true), '/brands/add');  ?></li>
					<li><?php echo $this->Html->link(__('List Brands', true), '/brands');  ?></li>
                <?php if($this->Session->read('User.role')=='admin') {?>
					<li><?php echo $this->Html->link(__('API Listing', true), '/admin/brand_urls');  ?></li>
                    <li><?php echo $this->Html->link(__('CSV Upload', true), '/admin/brands/upload');  ?></li>
					<!-- <li><?php echo $this->Html->link(__('Manual Cron', true), '/admin/brands/runcron');  ?></li> -->
                    <li><?php echo $this->Html->link(__('Logout', true), '/brands/logout');  ?></li>
                <?php } else { ?>
					<li><?php echo $this->Html->link(__('Login', true), '/brands/login');  ?></li>          
                <?php } ?>
			</ul>
		</div>
		<div id="content">       
			
            <div class="grid_16">
    			<?php echo $this->Session->flash(); ?>
    
    			<?php echo $content_for_layout; ?>
            </div>
		</div>
		<div id="footer" class="grid_16" >
			<div class="grid_7">&nbsp;</div>
            <div class="grid_8">POWER BRAND WEB INDEX</div>
		</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>